package edu.service.impl;


import edu.domain.Orders;
import edu.dto.CountDto;
import edu.dto.ExportOrdersDto;
import edu.mapper.OrdersMapper;
import edu.service.OrdersService;
import edu.support.base.service.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Orders)表服务实现类
 *
 */
@Service
public class OrdersServiceImpl extends BaseServiceImpl<OrdersMapper, Orders> implements OrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    /**
     * 根据时间统计销量排行
     *
     * @param time
     * @return
     */
    @Override
    public List<CountDto> countByTime(String time) {
        return ordersMapper.countByTime(time);
    }

}